package com.cy;

/**
 * args参数  接收
 */
public class HelloWorld {



    protected static void bark(){
        System.out.println("woof");
    }
}
class Hound extends HelloWorld{

    public static void bark(){
        System.out.println("new");
    }
    public static void main(String[] args) {
        System.out.println("HelloWorld" + (args.length > 0 ? args[0] : "World"));
        Hound.bark();
    }
}
